package com.lut.edu.apm.webCenter.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 用户表
 *
 * @author Zhao Suzhen
 * @date `2024/4/10`
 */
@Data
@AllArgsConstructor
@TableName(value = "t_user_info")
public class UserInfo {
    @TableId(type = IdType.INPUT, value = "user_id")
    private long userId;
    @TableField(value = "phone_number")
    private String phoneNumber;
    private String sex;
    @TableField(value = "user_points")
    private int userPoints;
    @TableField(value = "user_status")
    private String userStatus;
    @TableField(value = "gmt_reg")
    private Timestamp gmtReg;

    public UserInfo() {
        this.gmtReg = new Timestamp(System.currentTimeMillis());
    }
}
